<template>
	<view class="">
		<uni-popup ref="loadingPopup" :mask-click="false">
			<uni-load-more color="#fff" :iconSize="36" status="loading" :contentText="{ contentrefresh: '' }"></uni-load-more>
		</uni-popup>
	</view>
</template>

<script>
export default {
	data: function() {
		return {
			setOut: null, // 定时器
			setOutNum: 5000
		};
	},
	methods: {
		open() {
			this.$refs.loadingPopup.open();
			this.setOut = setTimeout(() => {
				this.$refs.loadingPopup.close();
			}, this.setOutNum);
		},
		close() {
			clearTimeout(this.setOut);
			this.$refs.loadingPopup.close();
		}
	}
};
</script>

<style></style>
